'use strict';
 //冷启动，执行一次 
 //1建立数据库连接
   const db = uniCloud.database();
	//找到要插入的数据表
	const user = db.collection('Accounts')
exports.main = async (event, context) => {
	//event为客户端上传的参数
	console.log('event : ', event)
	//3.插入数据
	let resust = await user.add(event);
	console.log("adduser result"+ JSON.stringify(resust));
	
	
	//返回数据给客户端
	return event;
};
